package unit_3;

import java.util.Scanner;
public class Demo04 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        double a = sc.nextDouble();
        double b = sc.nextDouble();
        double c = sc.nextDouble();
        double k = b * b - 4 * a * c;
        if(k < 0)
            System.out.println("无实数根");
        else
        {
            double x1 = (-b + Math.sqrt(k)) / (2 * a);
            double x2 = (-b - Math.sqrt(k)) / (2 * a);
            if (k == 0) {
                System.out.println("有一个实根: " + x1);
            } else {
                System.out.println("两个实根: " + x1 + " 和 " + x2);
            }
        }
    }
}
